package com.gobang.domain.message;

import lombok.*;

/**
 * 错误响应消息DTO
 * 服务器向客户端发送的错误响应消息
 * 
 * @author System
 * @since 1.0.0
 */
@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
public class ErrorResponseMessage extends WebSocketMessage {
    
    /**
     * 错误响应数据
     */
    private ErrorResponseData data;
    
    /**
     * 错误响应数据内部类
     */
    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    @Builder
    public static class ErrorResponseData {
        /**
         * 错误码
         */
        private String errorCode;
        
        /**
         * 错误消息
         */
        private String errorMessage;
        
        /**
         * 错误详情
         */
        private String details;
    }
    
    /**
     * 构造函数
     */
    public ErrorResponseMessage(ErrorResponseData data) {
        super("ERROR_RESPONSE");
        this.data = data;
    }
} 